x86: reduce code size of struct cpu_info member accesses
authorJan Beulich <jbeulich@suse.com>
Fri, 13 May 2016 17:15:34 +0000 (18:15 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 13 May 2016 17:16:36 +0000 (18:16 +0100)
commit4f6aea066fe2cf3bf4929d6dac1e558071566f73
tree1aa53d9c9ac99daf95aa157286fd57f4f13bb950
parent25eb87cb3242474413de439321b9c92b747ce8ab
x86: reduce code size of struct cpu_info member accesses

Instead of addressing these fields via the base of the stack (which
uniformly requires 4-byte displacements), address them from the end
(which for everything other than guest_cpu_user_regs requires just
1-byte ones). This yields a code size reduction somewhere between 8k
and 12k in my builds.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/svm/entry.S
xen/arch/x86/hvm/vmx/entry.S
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/asm_defns.h
xen/include/asm-x86/current.h